package com.model.entity;

import java.sql.Date;

import javax.persistence.Entity;
@Entity
public class Person {
         
         private int id;
         private String stuname;
         private String password;
         private String stunumber;
         private Date birthday;
     	private int sex;//1表示男，2表示女
        private int stuPolity;//1，党员 2.团员3.无党派4.其他
        private String stuBrief;
        private  int type;// 1 表示管理员 2 表示老师 3 表示学员
        private int state;// 状态 1 表示正常  0 表示删除    2 表示毕业
         public int getId() {
			return id;
		}
		public void setId(int id) {
			this.id = id;
		}
		public String getStuname() {
			return stuname;
		}
		public void setStuname(String stuname) {
			this.stuname = stuname;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String pasword) {
			this.password = pasword;
		}
		public String getStunumber() {
			return stunumber;
		}
		public void setStunumber(String stunumber) {
			this.stunumber = stunumber;
		}
		public Date getBirthday() {
			return birthday;
		}
		public void setBirthday(Date birthday) {
			this.birthday = birthday;
		}
		public int getSex() {
			return sex;
		}
		public void setSex(int sex) {
			this.sex = sex;
		}
		public int getStuPolity() {
			return stuPolity;
		}
		public void setStuPolity(int stuPolity) {
			this.stuPolity = stuPolity;
		}
		public String getStuBrief() {
			return stuBrief;
		}
		public void setStuBrief(String stuBrief) {
			this.stuBrief = stuBrief;
		}
		public int getType() {
			return type;
		}
		public void setType(int type) {
			this.type = type;
		}
		public int getState() {
			return state;
		}
		public void setState(int state) {
			this.state = state;
		}
	
		public Person(int id, String stuname, String pasword, int sex,
				int type, int state) {
		
			this.id = id;
			this.stuname = stuname;
			this.password = pasword;
			this.sex = sex;
			this.type = type;
			this.state = state;
		}
		public Person(String stuname, String pasword, String stunumber,
				Date date, int sex, int stuPolity, String stuBrief, int type,
				int state) {
		
		
			this.stuname = stuname;
			this.password = pasword;
			this.stunumber = stunumber;
			this.birthday = birthday;
			this.sex = sex;
			this.stuPolity = stuPolity;
			this.stuBrief = stuBrief;
			this.type = type;
			this.state = state;
		}
		public Person() {
			// TODO Auto-generated constructor stub
		}

}
